﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001B3 RID: 435
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeBossInfo : IMessage<ChallengeBossInfo>, IMessage, IEquatable<ChallengeBossInfo>, IDeepCloneable<ChallengeBossInfo>, IBufferMessage
	{
		// Token: 0x170005B5 RID: 1461
		// (get) Token: 0x0600139A RID: 5018 RVA: 0x00037EA9 File Offset: 0x000360A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeBossInfo> Parser
		{
			get
			{
				return ChallengeBossInfo._parser;
			}
		}

		// Token: 0x170005B6 RID: 1462
		// (get) Token: 0x0600139B RID: 5019 RVA: 0x00037EB0 File Offset: 0x000360B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeBossInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170005B7 RID: 1463
		// (get) Token: 0x0600139C RID: 5020 RVA: 0x00037EC2 File Offset: 0x000360C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeBossInfo.Descriptor;
			}
		}

		// Token: 0x0600139D RID: 5021 RVA: 0x00037EC9 File Offset: 0x000360C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossInfo()
		{
		}

		// Token: 0x0600139E RID: 5022 RVA: 0x00037F00 File Offset: 0x00036100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossInfo(ChallengeBossInfo other) : this()
		{
			this.secondNode_ = ((other.secondNode_ != null) ? other.secondNode_.Clone() : null);
			this.firstLineup_ = other.firstLineup_.Clone();
			this.challengeAvatarEquipmentMap_ = other.challengeAvatarEquipmentMap_.Clone();
			this.challengeAvatarRelicMap_ = other.challengeAvatarRelicMap_.Clone();
			this.bCMDAAKCNBA_ = other.bCMDAAKCNBA_;
			this.secondLineup_ = other.secondLineup_.Clone();
			this.firstNode_ = ((other.firstNode_ != null) ? other.firstNode_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600139F RID: 5023 RVA: 0x00037FAC File Offset: 0x000361AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossInfo Clone()
		{
			return new ChallengeBossInfo(this);
		}

		// Token: 0x170005B8 RID: 1464
		// (get) Token: 0x060013A0 RID: 5024 RVA: 0x00037FB4 File Offset: 0x000361B4
		// (set) Token: 0x060013A1 RID: 5025 RVA: 0x00037FBC File Offset: 0x000361BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossSingleNodeInfo SecondNode
		{
			get
			{
				return this.secondNode_;
			}
			set
			{
				this.secondNode_ = value;
			}
		}

		// Token: 0x170005B9 RID: 1465
		// (get) Token: 0x060013A2 RID: 5026 RVA: 0x00037FC5 File Offset: 0x000361C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> FirstLineup
		{
			get
			{
				return this.firstLineup_;
			}
		}

		// Token: 0x170005BA RID: 1466
		// (get) Token: 0x060013A3 RID: 5027 RVA: 0x00037FCD File Offset: 0x000361CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, ChallengeBossEquipmentInfo> ChallengeAvatarEquipmentMap
		{
			get
			{
				return this.challengeAvatarEquipmentMap_;
			}
		}

		// Token: 0x170005BB RID: 1467
		// (get) Token: 0x060013A4 RID: 5028 RVA: 0x00037FD5 File Offset: 0x000361D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, ChallengeBossAvatarRelicInfo> ChallengeAvatarRelicMap
		{
			get
			{
				return this.challengeAvatarRelicMap_;
			}
		}

		// Token: 0x170005BC RID: 1468
		// (get) Token: 0x060013A5 RID: 5029 RVA: 0x00037FDD File Offset: 0x000361DD
		// (set) Token: 0x060013A6 RID: 5030 RVA: 0x00037FE5 File Offset: 0x000361E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool BCMDAAKCNBA
		{
			get
			{
				return this.bCMDAAKCNBA_;
			}
			set
			{
				this.bCMDAAKCNBA_ = value;
			}
		}

		// Token: 0x170005BD RID: 1469
		// (get) Token: 0x060013A7 RID: 5031 RVA: 0x00037FEE File Offset: 0x000361EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> SecondLineup
		{
			get
			{
				return this.secondLineup_;
			}
		}

		// Token: 0x170005BE RID: 1470
		// (get) Token: 0x060013A8 RID: 5032 RVA: 0x00037FF6 File Offset: 0x000361F6
		// (set) Token: 0x060013A9 RID: 5033 RVA: 0x00037FFE File Offset: 0x000361FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossSingleNodeInfo FirstNode
		{
			get
			{
				return this.firstNode_;
			}
			set
			{
				this.firstNode_ = value;
			}
		}

		// Token: 0x060013AA RID: 5034 RVA: 0x00038007 File Offset: 0x00036207
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeBossInfo);
		}

		// Token: 0x060013AB RID: 5035 RVA: 0x00038018 File Offset: 0x00036218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeBossInfo other)
		{
			return other != null && (other == this || (object.Equals(this.SecondNode, other.SecondNode) && this.firstLineup_.Equals(other.firstLineup_) && this.ChallengeAvatarEquipmentMap.Equals(other.ChallengeAvatarEquipmentMap) && this.ChallengeAvatarRelicMap.Equals(other.ChallengeAvatarRelicMap) && this.BCMDAAKCNBA == other.BCMDAAKCNBA && this.secondLineup_.Equals(other.secondLineup_) && object.Equals(this.FirstNode, other.FirstNode) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060013AC RID: 5036 RVA: 0x000380D0 File Offset: 0x000362D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.secondNode_ != null)
			{
				num ^= this.SecondNode.GetHashCode();
			}
			num ^= this.firstLineup_.GetHashCode();
			num ^= this.ChallengeAvatarEquipmentMap.GetHashCode();
			num ^= this.ChallengeAvatarRelicMap.GetHashCode();
			if (this.BCMDAAKCNBA)
			{
				num ^= this.BCMDAAKCNBA.GetHashCode();
			}
			num ^= this.secondLineup_.GetHashCode();
			if (this.firstNode_ != null)
			{
				num ^= this.FirstNode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060013AD RID: 5037 RVA: 0x00038173 File Offset: 0x00036373
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060013AE RID: 5038 RVA: 0x0003817B File Offset: 0x0003637B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060013AF RID: 5039 RVA: 0x00038184 File Offset: 0x00036384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.firstNode_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.FirstNode);
			}
			this.firstLineup_.WriteTo(ref output, ChallengeBossInfo._repeated_firstLineup_codec);
			if (this.secondNode_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.SecondNode);
			}
			this.challengeAvatarRelicMap_.WriteTo(ref output, ChallengeBossInfo._map_challengeAvatarRelicMap_codec);
			this.challengeAvatarEquipmentMap_.WriteTo(ref output, ChallengeBossInfo._map_challengeAvatarEquipmentMap_codec);
			this.secondLineup_.WriteTo(ref output, ChallengeBossInfo._repeated_secondLineup_codec);
			if (this.BCMDAAKCNBA)
			{
				output.WriteRawTag(112);
				output.WriteBool(this.BCMDAAKCNBA);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060013B0 RID: 5040 RVA: 0x00038240 File Offset: 0x00036440
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.secondNode_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.SecondNode);
			}
			num += this.firstLineup_.CalculateSize(ChallengeBossInfo._repeated_firstLineup_codec);
			num += this.challengeAvatarEquipmentMap_.CalculateSize(ChallengeBossInfo._map_challengeAvatarEquipmentMap_codec);
			num += this.challengeAvatarRelicMap_.CalculateSize(ChallengeBossInfo._map_challengeAvatarRelicMap_codec);
			if (this.BCMDAAKCNBA)
			{
				num += 2;
			}
			num += this.secondLineup_.CalculateSize(ChallengeBossInfo._repeated_secondLineup_codec);
			if (this.firstNode_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FirstNode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060013B1 RID: 5041 RVA: 0x000382F0 File Offset: 0x000364F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeBossInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.secondNode_ != null)
			{
				if (this.secondNode_ == null)
				{
					this.SecondNode = new ChallengeBossSingleNodeInfo();
				}
				this.SecondNode.MergeFrom(other.SecondNode);
			}
			this.firstLineup_.Add(other.firstLineup_);
			this.challengeAvatarEquipmentMap_.MergeFrom(other.challengeAvatarEquipmentMap_);
			this.challengeAvatarRelicMap_.MergeFrom(other.challengeAvatarRelicMap_);
			if (other.BCMDAAKCNBA)
			{
				this.BCMDAAKCNBA = other.BCMDAAKCNBA;
			}
			this.secondLineup_.Add(other.secondLineup_);
			if (other.firstNode_ != null)
			{
				if (this.firstNode_ == null)
				{
					this.FirstNode = new ChallengeBossSingleNodeInfo();
				}
				this.FirstNode.MergeFrom(other.FirstNode);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060013B2 RID: 5042 RVA: 0x000383C8 File Offset: 0x000365C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060013B3 RID: 5043 RVA: 0x000383D4 File Offset: 0x000365D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num <= 40U)
					{
						if (num == 10U)
						{
							if (this.firstNode_ == null)
							{
								this.FirstNode = new ChallengeBossSingleNodeInfo();
							}
							input.ReadMessage(this.FirstNode);
							continue;
						}
						if (num != 40U)
						{
							goto IL_56;
						}
					}
					else if (num != 42U)
					{
						if (num != 50U)
						{
							goto IL_56;
						}
						if (this.secondNode_ == null)
						{
							this.SecondNode = new ChallengeBossSingleNodeInfo();
						}
						input.ReadMessage(this.SecondNode);
						continue;
					}
					this.firstLineup_.AddEntriesFrom(ref input, ChallengeBossInfo._repeated_firstLineup_codec);
					continue;
				}
				if (num <= 82U)
				{
					if (num == 58U)
					{
						this.challengeAvatarRelicMap_.AddEntriesFrom(ref input, ChallengeBossInfo._map_challengeAvatarRelicMap_codec);
						continue;
					}
					if (num == 82U)
					{
						this.challengeAvatarEquipmentMap_.AddEntriesFrom(ref input, ChallengeBossInfo._map_challengeAvatarEquipmentMap_codec);
						continue;
					}
				}
				else
				{
					if (num == 104U || num == 106U)
					{
						this.secondLineup_.AddEntriesFrom(ref input, ChallengeBossInfo._repeated_secondLineup_codec);
						continue;
					}
					if (num == 112U)
					{
						this.BCMDAAKCNBA = input.ReadBool();
						continue;
					}
				}
				IL_56:
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400080F RID: 2063
		private static readonly MessageParser<ChallengeBossInfo> _parser = new MessageParser<ChallengeBossInfo>(() => new ChallengeBossInfo());

		// Token: 0x04000810 RID: 2064
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000811 RID: 2065
		public const int SecondNodeFieldNumber = 6;

		// Token: 0x04000812 RID: 2066
		private ChallengeBossSingleNodeInfo secondNode_;

		// Token: 0x04000813 RID: 2067
		public const int FirstLineupFieldNumber = 5;

		// Token: 0x04000814 RID: 2068
		private static readonly FieldCodec<uint> _repeated_firstLineup_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04000815 RID: 2069
		private readonly RepeatedField<uint> firstLineup_ = new RepeatedField<uint>();

		// Token: 0x04000816 RID: 2070
		public const int ChallengeAvatarEquipmentMapFieldNumber = 10;

		// Token: 0x04000817 RID: 2071
		private static readonly MapField<uint, ChallengeBossEquipmentInfo>.Codec _map_challengeAvatarEquipmentMap_codec = new MapField<uint, ChallengeBossEquipmentInfo>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForMessage<ChallengeBossEquipmentInfo>(18U, ChallengeBossEquipmentInfo.Parser), 82U);

		// Token: 0x04000818 RID: 2072
		private readonly MapField<uint, ChallengeBossEquipmentInfo> challengeAvatarEquipmentMap_ = new MapField<uint, ChallengeBossEquipmentInfo>();

		// Token: 0x04000819 RID: 2073
		public const int ChallengeAvatarRelicMapFieldNumber = 7;

		// Token: 0x0400081A RID: 2074
		private static readonly MapField<uint, ChallengeBossAvatarRelicInfo>.Codec _map_challengeAvatarRelicMap_codec = new MapField<uint, ChallengeBossAvatarRelicInfo>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForMessage<ChallengeBossAvatarRelicInfo>(18U, ChallengeBossAvatarRelicInfo.Parser), 58U);

		// Token: 0x0400081B RID: 2075
		private readonly MapField<uint, ChallengeBossAvatarRelicInfo> challengeAvatarRelicMap_ = new MapField<uint, ChallengeBossAvatarRelicInfo>();

		// Token: 0x0400081C RID: 2076
		public const int BCMDAAKCNBAFieldNumber = 14;

		// Token: 0x0400081D RID: 2077
		private bool bCMDAAKCNBA_;

		// Token: 0x0400081E RID: 2078
		public const int SecondLineupFieldNumber = 13;

		// Token: 0x0400081F RID: 2079
		private static readonly FieldCodec<uint> _repeated_secondLineup_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x04000820 RID: 2080
		private readonly RepeatedField<uint> secondLineup_ = new RepeatedField<uint>();

		// Token: 0x04000821 RID: 2081
		public const int FirstNodeFieldNumber = 1;

		// Token: 0x04000822 RID: 2082
		private ChallengeBossSingleNodeInfo firstNode_;
	}
}
